Tweaking and renaming the use of the devise gem. Adding login validation