login error checking and others
more error checking biz