Important FIX in login: the specific request_dispatcher() was returning true also on login unsuccessful. The query in the user class, authenticate method, is now in a variable. In this way can be printed easily