Adds login form processing