Added a login and logout attribute.
Added the ability to upload an image.