register page + auth logic