add user log in functionality