Incorporated edits from @lucasmazza, wrote integration tests for password reminder feature