Code clean up for Login Form Controller