User class updated

Added private variables and methods to User class