added clear form, made cancel button work on login form