an endpoint for account registration and checking whether an user already exists