adding javascript to signin