javascript for sign in / sign up for both roles