user login/registration functionality added