title: CQ Login with own messages
body: <p>Is it possible to programm an own servlet to login in CQ System and return the own message as JSON responses.</p>
  
  <p>I mean the same as the J_Security_Check do, but that I have the control of the messages. Login should check credentials and create token for the session.</p>
  
  <p>I don't found any helpful solution in the internet.</p>
  
  <p>Does somebody know how I can do that?</p>
  
  <p>Are there any classes in AEM to help in this situation?</p>
  
  <p>I use AEM 6.1.</p>