Made User constructors return null on input error or if user isn't found in database.