Added security, not working yet
Working version  with user login