Add functionality for user log in