fixed bug in case of user asked to change the password (no more redirect to home page as logged user) + some small fixes