changed login to post and html form