Register page communicating with API and some validation.