Cast login-form into form