Clean up of UserProfilecontroller.scala