Registration error handling added!