Updated with logout funcationality

Added getName and getEmail methods.