added message security and login page