Added slots for validating login and reg buttons