Implement Login security -TODO