messed up log in system
fixed errors