Added IP check to login & removed Doctrine from sources