added form support login and some other stuff