finished authentication and new users signing up, refactored this version