Register now checks for valid data

Displays message if data is incorrect.