Moved login functionality from index.scala.html to login.scala.html