Kotlin Validation issue with Register function in login system
When on the Login page and when pressing register, it takes you to register, but when clicking on register button on register page, it adds user to database regardless if info is provided or not and then takes you back to login page. I want the validation to happen before the execution. Currently it does validate, but executes regardless. Please advise.
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {...