fix issue with registration page