Fixed wrong call Login() and Register() + some small fix