finally fixed the login in stuff