login and adding user functions added