fixes to User

class name should start with capital letter.
fields with lowercase.
added some argument checking.