Added user authentication and started preperation for login