Added Spring security dependencies and minor changes