Bug fix for view password link
Refactoring + Bug fixes + Database Repository