added script for login form