added forgot password fucntionality and minor fixes