changed the coding in loginpopupview