Added email password functionality and related functions and views