Implemented validation and controller logic for signup form