Added devise auth, flash alerts