Manager Password change and code from previous pull request

Since the previous pull request was not working, hence i'v included that code with this pull request along with code for manager password change