Modal function added. Still needs backend password validation function