added GPLV3 license to all java files
fixed the login demo