A simple login mechanism written in Scala and Play Framework