Skeleton code for registration and login