Login now working fine + new authentication procedure