Updated Code with Manual Login and Registration .