Login subscribe validation

fixes #141
The enum has never been in another file. Long time ago i had the debate with @Masadow and I always put the enum inside the class file since then.