Created logic and simple validation for sign-up; a basic service encapsulates the server communication