Mail Funcationality working. Started adding spring security.