fix problem with authetication on generate controller