Setting up user authentication for login

This reverts commit f80ad15f7edbfeb607eeb0aab5c8b11456bc3adb.