Fixed error in code generation
Added pop-up login box