added user login and authentication