Rails 4 app using devise with validation and submit through AJAX