Added Event Handlers to Login GUI

added handlers for buttons and to determine if username is valid