add user log in security, and sign in functionality