Clean up user model and added downcase attributes.