Added model code for login page scripts