added check so find by email never receives nil as an argument
added specs for the sessions controller