Exericse 7 for adding user authentication