added jquery on event to fname. stored user details in db