add sign in and register page, apply redirections when user signed in