Remade the login controller using the doctrine