added contex processors and validation for login