Sign in by username and email both using devise and modal popup, Image upload in modal popup