Spring basic configuration, complete simple log in function