changed the structure of emitting, causing logins to be faster, also fixed button gerenation
changed the structure of emitting, causing logins to be faster, also added validation to input