Some refactoring and added User class for authentication.