modified to navigate to register screen