adding security and login