added checking javascript in authentication.html.rb