Registration Bug Fix
Login and registration bug fixes