Added register and sign in support