sign in page template and js