Registration and Login bug fixes