Change in User class equals function

equals function will now check if usernames are equal