Fixed edit view for file field condition and also moved login at view class for user type