medal bug; ajax login

corrected bug in medals model; use ajax login to feedback on password
errors