babitha: modified the query for login verification