Finished validation of all fields. Also changed accesscode from int to string.