Fixing problem with creating accounts.
Allowing only jpg, gif or png photos.
Allowing jpeg.
Merge branch 'master' into devel
Aligning the username requirements with those mandated by the django admin interface (COG-561).