Rails 4.2 support

Update form_field and UserSession model support for Rails 4.2