changes for reusable method and implementation.

duplicate code was removed for the  singup and login modules along with image upload during singup

Signed-off-by: Ashish Namdev <ashish28.sirt@gmail.com>
Merge branch '13w41-fixes' of https://github.com/AshishNamdev/Socioware into 13w41-fixes

* '13w41-fixes' of https://github.com/AshishNamdev/Socioware:
  changes for reusable methoda and implementation.