Implemented functions for redirection, logging in of user, logging out of user. Edited user_logged_in function. User creation from cookies function