added actions to login buttons