added methods for login and storing anew user