fixed login bug and u_p record making