Update to user.rb - before_save placed after validates

If I'm not mistaken, the before_save callback should be placed after the validate statements, otherwise the DB will attempt to save before validation, causing a rollback.