fix login functionality...change to work with jQuery