added user and refactored creating users and profiles