created form component and started altering login form to use it