added accessor method to User.java