fixed environment caused by application.yml but unable to fix the invalid user error