Fixed layout bug causing register page to crash