fixed the login bug that occured due to missing MEDIA_ROOT