ActiveRecord sessions and logic for user creation in controller