change login error to alert instead of inline display - assignment requirement