Changed User class to a singleton