Fixed register/Login issue