fix edit button on view details. issue 166
Initial implementation for user login