Fix pom, add flash messages after login