Added code for secure login for users