added prof login validation + warning msg