Fixed path to resources
Fixed login bug