remove double check on detectEnvirontment
add AuthGuard prevent brute force and other authentication issues