working on the login functions cleaned any old residual code from it
logins functions on server side done app will now redirect to home if uer is logged in