updated functionality of checkbox/sign in button