Modification to password module to provide session on handling the response object